package rs.udd.service.dto.agent;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import rs.udd.model.Agent.Gender;
import rs.udd.service.dto.user.AbstractUserEditDto;

public class AgentEditDto extends AbstractUserEditDto {

	@Past
	@NotNull
	private Date birthDate;

	@NotNull
	private Gender gender;

	public AgentEditDto() {

	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public Gender getGender() {
		return gender;
	}

	public void setGender(Gender gender) {
		this.gender = gender;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append(super.toString())
				.append("birthDate", birthDate)
				.append("gender", gender)
				.toString();
	}

}
